package com.lai.common.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

public class AuthServerConstant {

    public static final String SMS_CODE_CACHE_PREFIX = "SMS:CODE:";

    public static final String LOGIN_USER = "loginUser";


    public enum Oauth2Enum{
        Oauth2_PLATFORM_WEIBO(1,"微博"),
        Oauth2_PLATFORM_GITEE(2,"GITEE"),
        Oauth2_PLATFORM_GITHUB(3,"GITHUB");

        Oauth2Enum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        @Getter
        private int code;
        @Getter
        private String msg;

    }
}
